<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
    <title>Title</title>
</head>
<body>
<div style="width: 200px;height: 200px; padding: 20px; border: red solid 10px;background-color: burlywood">
    <p style="background-color: red">这是一个段落</p>
</div>
<script type="text/javascript">
    console.log("innerWidth=" + $("div").innerWidth());
    console.log("innerWidth=" + $("div").innerHeight());
    console.log("width=" + $("div").width());
    console.log("height=" + $("div").height());
    console.log("outerWidth=" + $("div").outerWidth());
    console.log("outerHeight=" + $("div").outerHeight());
    console.log("outerWidth(true)=" + $("div").outerWidth(true));
    console.log("outerHeight(true)=" + $("div").outerHeight(true));


    console.log("p width=" + $("p").width());
    console.log("p height=" + $("p").height());

</script>
</body>
</html>